<?php
    if (empty($this->ads_count))
        $this->ads_count = "1";
?>
<div class="right">
    <div class="rtitle">
        Advertisements
    </div>
    <div class="advs">
        <?php
            for ($i = 1; $i <= $this->ads_count; $i++)
            {
                ?>
                <a href="#"><img src="<?php echo IMAGES_PATH; ?>/adv1.jpg" alt="adv1" /></a>
                <?php
            }
        ?>
    </div>
</div>
<div class="cf"></div>